package com.xcity.tools.http.impl;

import java.lang.reflect.Method;

import com.xcity.game.employee.template.EmployeeQualityUpTemplate;
import com.xcity.tools.http.XLS2JSONFilter;

public class EmployeeQualityUpTemplateFilter implements XLS2JSONFilter<EmployeeQualityUpTemplate> {

	@Override
	public Object doFilter(EmployeeQualityUpTemplate template, String field, Method getter) throws Exception {
		if ("items".equals(field)) {
			return template.getWrappedItems();
		}
		return getter.invoke(template);
	}

}
